<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<button onclick="hello()">调用hello()</button>
		<h2>在链接中调用函数</h2>
		<a href="javascript:hello();">调用hello()</a>
		<h2>例子</h2>
		
		<script>
			function hello()
			function calc()
			{
				num1=parseint(input1.value);
				num2=parseint(input2.value);
				input3.value=add3(num1,num2);
				var add2=function(a,b);
				return a+b;
				var add3=new function("a","b","return a+b");
			}
		</script>
	</body>
</html>
